package com.ie.controller.admin;

import com.ie.common.http.ResponseResult;
import com.ie.common.security.anno.AuthIgrone;
import com.ie.entity.admin.AUserEntity;
import com.ie.service.admin.AUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/api/admin")
public class AUserController {
    @Autowired
    private AUserService aUserService;
    @AuthIgrone
    @RequestMapping("/login")
    public ResponseResult<Map<String,String>> login(@RequestBody AUserEntity aUserEntity){


        return aUserService.login(aUserEntity);
    }
}
